package com.company;

public class L_FigureTest {
    public static void main(String[] args)
    {
        L_Figure figure;    //声明Figure类的变量
        figure=new L_Rectangle(9,9);
        System.out.println(figure.area());
        System.out.println("===============================");
        figure=new L_Triangle(6,8);
        System.out.println(figure.area());
        System.out.println("===============================");
        figure=new L_Figure(10,10);
        System.out.println(figure.area());
    }
}
